@echo off
echo ========================================
echo Android应用调试日志查看器
echo ========================================
echo.
echo 1. 查看所有相关日志
echo 2. 只查看ResourceDownloadManager日志
echo 3. 只查看LoadingActivity日志
echo 4. 查看网络相关日志
echo 5. 查看错误日志
echo 6. 清除日志缓存
echo.
set /p choice=请选择 (1-6): 

if "%choice%"=="1" (
    echo 查看所有相关日志...
    adb logcat -s ResourceDownloadManager LoadingActivity AndroidRuntime
) else if "%choice%"=="2" (
    echo 查看ResourceDownloadManager日志...
    adb logcat -s ResourceDownloadManager
) else if "%choice%"=="3" (
    echo 查看LoadingActivity日志...
    adb logcat -s LoadingActivity
) else if "%choice%"=="4" (
    echo 查看网络相关日志...
    adb logcat -s ResourceDownloadManager | findstr "URL\|响应码\|连接\|下载"
) else if "%choice%"=="5" (
    echo 查看错误日志...
    adb logcat -s AndroidRuntime | findstr "FATAL\|ERROR"
) else if "%choice%"=="6" (
    echo 清除日志缓存...
    adb logcat -c
    echo 日志已清除
) else (
    echo 无效选择
)

pause
